/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.scene.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.scene.bean.ItemListBean;
import org.swan.bean.MessageBean;

public interface GoodsListService {
    /**
     * 列表查询
     *
     * @param corpCode          水司code
     * @param itemName          物品名称
     * @param itemType          物品种类code
     * @param itemSpecification 物品规格
     * @param page              当前页
     * @param pageSize          每页条数
     * @return
     */
    MessageBean queryForList(String corpCode, String itemName,
                             String itemType, String itemSpecification,
                             Integer page, Integer pageSize);

    /**
     * 单条记录查询
     *
     * @param id
     * @return
     */
    MessageBean queryById(String id);

    /**
     * 物品列表删除
     *
     * @param id
     * @return
     */
    MessageBean deleteById(String id);

    /**
     * 新增
     *
     * @param user
     * @param bean
     * @return
     */
    MessageBean insert(StaffBean user, ItemListBean bean);

    /**
     * 修改
     *
     * @param user
     * @param bean
     * @return
     */
    MessageBean update(StaffBean user, ItemListBean bean);
}
